package edu.hainnu.niit.model;

public class Classification {
    private int id;
    private String cname;
    private int parent_id;

    public Classification() {
    }

    public Classification(int id, String cname, int parent_id) {
        this.id = id;
        this.cname = cname;
        this.parent_id = parent_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public int getParent_id() {
        return parent_id;
    }

    public void setParent_id(int parent_id) {
        this.parent_id = parent_id;
    }

    @Override
    public String toString() {
        return "Classification{" +
                "id=" + id +
                ", cname='" + cname + '\'' +
                ", parent_id=" + parent_id +
                '}';
    }
}
